package com.ruoyi.sl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sl.mapper.SlRfworkCheckMapper;
import com.ruoyi.sl.domain.SlRfworkCheck;
import com.ruoyi.sl.service.ISlRfworkCheckService;

/**
 * 待办复核人Service业务层处理
 * 
 * @author admin
 * @date 2024-06-26
 */
@Service
public class SlRfworkCheckServiceImpl implements ISlRfworkCheckService 
{
    @Autowired
    private SlRfworkCheckMapper slRfworkCheckMapper;

    /**
     * 查询待办复核人
     * 
     * @param rfcheckId 待办复核人主键
     * @return 待办复核人
     */
    @Override
    public SlRfworkCheck selectSlRfworkCheckByRfcheckId(Long rfcheckId)
    {
        return slRfworkCheckMapper.selectSlRfworkCheckByRfcheckId(rfcheckId);
    }

    /**
     * 查询待办复核人列表
     * 
     * @param slRfworkCheck 待办复核人
     * @return 待办复核人
     */
    @Override
    public List<SlRfworkCheck> selectSlRfworkCheckList(SlRfworkCheck slRfworkCheck)
    {
        return slRfworkCheckMapper.selectSlRfworkCheckList(slRfworkCheck);
    }

    /**
     * 新增待办复核人
     * 
     * @param slRfworkCheck 待办复核人
     * @return 结果
     */
    @Override
    public int insertSlRfworkCheck(SlRfworkCheck slRfworkCheck)
    {
        return slRfworkCheckMapper.insertSlRfworkCheck(slRfworkCheck);
    }

    /**
     * 修改待办复核人
     * 
     * @param slRfworkCheck 待办复核人
     * @return 结果
     */
    @Override
    public int updateSlRfworkCheck(SlRfworkCheck slRfworkCheck)
    {
        return slRfworkCheckMapper.updateSlRfworkCheck(slRfworkCheck);
    }

    /**
     * 批量删除待办复核人
     * 
     * @param rfcheckIds 需要删除的待办复核人主键
     * @return 结果
     */
    @Override
    public int deleteSlRfworkCheckByRfcheckIds(Long[] rfcheckIds)
    {
        return slRfworkCheckMapper.deleteSlRfworkCheckByRfcheckIds(rfcheckIds);
    }

    /**
     * 删除待办复核人信息
     * 
     * @param rfcheckId 待办复核人主键
     * @return 结果
     */
    @Override
    public int deleteSlRfworkCheckByRfcheckId(Long rfcheckId)
    {
        return slRfworkCheckMapper.deleteSlRfworkCheckByRfcheckId(rfcheckId);
    }
}
